from tests import BlogLogin
from tests import BlogList
from common.Untils import BlogDriver
from tests import BlogDetail
from tests import BlogEdit

if __name__ =="__main__":
    #登录页测试
    BlogLogin.BlogLogin().LoginFailTest()
    BlogLogin.BlogLogin().LoginSucessTest()

    #博客首页测试
    BlogList.BlogList().ListTestByLogin()
    BlogList.BlogList().ListTestByNotLogin()

    #测试登录状态下的博客详情页
    BlogDetail.BlogDetail().DetailTestByLogin()
    # 测试未登录状态下的博客详情页
    BlogDetail.BlogDetail().DetailTestByNotLogin()
    #博客编辑页测试
    BlogEdit.BlogEdit().EditSucessTestByLogin()
    BlogEdit.BlogEdit().EditFailTestByLogin()
    BlogEdit.BlogEdit().EditFailTestByNotLogin()

    BlogDriver.driver.quit()